package com.starry.module.system.api.tenant.domain.qo;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 系统租户SysTenantQo
 *
 * @author xiaoke
 */
@Schema(description = "SysTenantQo")
@Data
public class SysTenantQo {
    /**
     * 租户Id
     */
    @Schema(description = "租户Id")
    private Long id;
    /**
     * 联系人
     */
    @Schema(description = "联系人")
    private String contactName;
    /**
     * 联系手机
     */
    @Schema(description = "联系手机")
    private String contactMobile;
    /**
     * 租户名
     */
    @Schema(description = "租户名")
    @NotBlank(message = "租户名")
    private String name;
    /**
     * 绑定域名
     */
    @Schema(description = "绑定域名")
    private String website;
    /**
     * 租户套餐编号
     */
    @Schema(description = "租户套餐")
    @NotNull(message = "租户套餐不能为空")
    private Long packageId;
    /**
     * 过期时间
     */
    @Schema(description = "过期时间")
    @NotNull(message = "租户过期时间")
    private LocalDateTime expireTime;
    /**
     * 账号数量
     */
    @Schema(description = "账号数量")
    @NotNull(message = "租户账号")
    private Integer accountCount;
}

